import App from './App'
import share from '@/common/share.js'

// #ifndef VUE3
import Vue from 'vue'

// uview
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)


// colorui
import cuCustom from './colorui/components/cu-custom.vue'
Vue.component('cu-custom',cuCustom)

import moment from 'moment'
Vue.prototype.$moment = moment; //赋值使用
moment.locale("zh-cn") // 设置中文

// 背景图片
Vue.prototype.$imageURL = 'https://zjb.fendou.life/action/getImg?id=bg1.jpg'; 
Vue.prototype.$baseUrl = 'https://zjb.fendou.life/action'; 
// Vue.prototype.$baseUrl = 'http://127.0.0.1:3000';  //线下测试
// 引入加分函数
	import {
		
		addScore
	} from "@/common/api.js";
Vue.prototype.$addScore =addScore
// 订阅消息模板id

Vue.prototype.$get_tmplIds = ['bAgG6FdI8SJTJ7BYMfqPbmdSwAqB_uf67yBEhyDbUjY']; //获取订阅
Vue.prototype.$send_tmplIds = 'bAgG6FdI8SJTJ7BYMfqPbmdSwAqB_uf67yBEhyDbUjY'; //发送订阅 // 活动通知

// 分享朋友圈
Vue.mixin(share)


Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
import share from './common/share'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif